# -*- coding: utf-8 -*-
import os
from app import create_app, db
from flask import request, render_template, jsonify

app = create_app(os.getenv('FLASK_CONFIG') or 'default')


@app.errorhandler(404)
def page_not_found(e):
    return render_template('errors/404.html'), 404


@app.before_request
def before():
    url = request.path  # 当前请求的URL
    passUrl = ["/login"]
    if url in passUrl:
        pass

# nohup /usr/bin/python38/bin/python3.8 start.py &
if __name__ == '__main__':
    app.run(debug=True)
